﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LowLevelGraphics.Filter
{
    /// <summary>
    /// Uses diagonal fill to eliminate 8-connectivity of the background. For example:
    ///0  1  0           0  1  0 
    ///1  0  0  becomes  1  1  0 
    ///0  0  0           0  0  0
    /// </summary>
    public class Diag : BaseImageFilter
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Diag"/> class.
        /// </summary>
        public Diag()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="Diag"/> class.
        /// </summary>
        /// <param name="_diag">The _diag.</param>
        internal Diag(Diag _diag)
        {
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="_bitmap"></param>
        /// <returns></returns>
        public override UnsafeBitmap Execute(UnsafeBitmap _bitmap)
        {
            return base.Execute(_bitmap);
        }

        /// <summary>
        /// This is used to clone a filter, each filter must implement it's own clone functionality
        /// </summary>
        /// <returns></returns>
        public override object Clone()
        {
            return new Diag(this);
        }
    }
}
